# Helidon SE Server with OpenAPI

## Build and run

With JDK11+
```bash
mvn package
java -jar target/{{{artifactId}}}.jar
```

## Exercise the application

```
{{#apiInfo}}{{#apis}}{{#operations}}{{#operation}}curl -X {{httpMethod}} {{{basePath}}}{{{path}}}
{{/operation}}{{/operations}}{{/apis}}{{/apiInfo}}
```

## Try health and metrics

```
curl -s -X GET {{{basePath}}}/health
{"outcome":"UP",...
. . .

# Prometheus Format
curl -s -X GET {{{basePath}}}/metrics
# TYPE base:gc_g1_young_generation_count gauge
. . .

# JSON Format
curl -H 'Accept: application/json' -X GET {{{basePath}}}/metrics
{"base":...
. . .
```